//
//  XMGTopicVideoView.m
//  3期-百思不得姐
//
//  Created by xiaomage on 15/9/17.
//  Copyright (c) 2015年 xiaomage. All rights reserved.
//

#import "ZCTopicVideoView.h"
#import "ZCTopic.h"
#import <UIImageView+WebCache.h>
//#import <UIImageView+WebCache.h>

@interface ZCTopicVideoView()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *playCountLabel;
@property (weak, nonatomic) IBOutlet UILabel *videoTimeLabel;
@end

@implementation ZCTopicVideoView
- (void)awakeFromNib{
    [super awakeFromNib];
    //从xib中加载进来的控件的autoresizingMask默认是宽度和高度
    self.autoresizingMask = UIViewAutoresizingNone;
}

- (void)setTopic:(ZCTopic *)topic{
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:topic.image1]];
}

@end
